var testloginurl = '/user/testlogin';
//测试是否登录
$.ajax({
    url : testloginurl,
    type : 'POST',
    // contentType: "application/x-www-form-urlencoded; charset=utf-8",
    contentType : false,
    processData : false,
    cache : false,
    success : function(data) {
        if (data.success) {

        } else {
            $('.fail-message').html(data.errMsg);
            $('.fail').click();
            window.setTimeout("window.location='/user/userlogin'",3000);
        }
    }
});